/* 页面背景样式 */
body {
    background-color: #F3F4F6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
}

/* 内容容器样式 */
.content-container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 1rem;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    animation: fadeIn 0.8s ease-in-out 0.1s backwards;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon,
.search-input-wrapper:hover .search-icon {
    color: #6610f2;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-radius: 8px;
    background-color: #f1f2f4;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 16, 242, 0.2);
    background-color: #f8f9fa;
}

/* 分类选择器 */
.category-wrapper {
    position: relative;
}

.category-select {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: #f1f2f4;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.category-select:hover {
    background-color: #e9eaec;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.arrow-icon {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.category-select:hover .arrow-icon {
    transform: rotate(-180deg);
}

/* 搜索按钮 */
.search-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #6610f2;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(102, 16, 242, 0.2);
}

.search-button:hover {
    background-color: #5a0dce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 16, 242, 0.3);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(102, 16, 242, 0.2);
}

/* 标签样式 */
.tags-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-in-out 0.2s backwards;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f1f2f4;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background: #e9eaec;
    border-color: #ddd;
}

.tag .close-icon {
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease;
    color: #666;
}

.tag:hover .close-icon {
    transform: rotate(90deg);
    color: #6610f2;
}

/* 搜索标签特殊样式 */
.tag[data-type="search"] {
    background-color: #e6f0ff;
    border-color: #b3d7ff;
}

.tag[data-type="search"]:hover {
    background-color: #d4e6ff;
    border-color: #99c2ff;
}

/* 分类标签特殊样式 */
.tag[data-type="category"] {
    background-color: #e6fff2;
    border-color: #b3ffd9;
}

.tag[data-type="category"]:hover {
    background-color: #ccffe6;
    border-color: #99ffc2;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    margin: 20px 0;
    background-color: #f9f9f9;
}

/* 文章列表 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.8s ease-in-out 0.3s backwards;
}

.article-card {
    display: flex;
    gap: 16px;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    cursor: pointer;
    padding: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    animation: fadeIn 0.5s ease-in-out;
}

.article-card:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
}

.article-image {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 12px 0;
}

.article-title {
    margin: 0;
    font-size: 18px;
    color: #000;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
    margin-bottom: 15px;
}

.article-card:hover .article-title {
    color: #6610f2;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    align-items: center;
}

.author {
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 0;
}

.author::before {
    display: none;
}

.article-card:hover .author {
    color: #444;
}

.separator {
    color: #ddd;
    margin: 0 15px;
}

.tags {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.article-card:hover .tags {
    color: #444;
}

.date {
    color: #666;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 0;
    margin-left: auto;
}

.date::before {
    display: none;
}

.article-card:hover .date {
    color: #444;
}

.article-source {
    margin-left: auto;
}

.source-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 结果页脚 */
.results-footer {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.8s ease-in-out 0.4s backwards;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.pagination-container {
    margin: 0;
}

.load-more {
    justify-self: end;
}

@media (max-width: 768px) {
    .results-footer {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .load-more {
        justify-self: center;
    }

    .results-count {
        order: -1;
    }

    .pagination-container {
        order: 0;
    }

    .load-more {
        order: 1;
    }
}

/* 下拉菜单 */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    margin-top: 5px;
    padding: 5px 0;
    animation: fadeIn 0.2s ease;
    border: 1px solid #f0f0f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover {
    background-color: rgba(102, 16, 242, 0.05);
    padding-left: 20px;
    color: #6610f2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-container {
        padding: 15px;
        border-radius: 0;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-card {
        flex-direction: column;
        padding: 12px;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .article-content {
        padding: 15px 5px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.dropdown-indicator {
    display: inline-block;
    margin-left: 8px;
    color: #6610f2;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.category-select:hover .dropdown-indicator {
    transform: rotate(-180deg);
}

/* 资源标签样式 */
.resource-tags {
    color: #666;
    font-weight: 500;
}

.article-card:hover .resource-tags {
    color: #444;
}

/* 网盘类型样式 */
.disk-type {
    color: #666;
    font-weight: 500;
}

.article-card:hover .disk-type {
    color: #444;
}

/* 动态内容容器 */
.dynamic-content {
    opacity: 1;
}

/* 分页导航样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-button {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6610f2;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    user-select: none;
    font-size: 14px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-button:hover {
    background-color: #f8f9fa;
    border-color: #6610f2;
    color: #6610f2;
    transform: translateY(-1px);
}

.pagination-button.active {
    background-color: #6610f2;
    border-color: #6610f2;
    color: #fff;
    font-weight: 500;
}

.pagination-button.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.65;
}

.pagination-ellipsis {
    padding: 8px 12px;
    color: #6c757d;
    user-select: none;
}